package com.lyf.scm.admin.domain.remote.allocationservice;

import com.lyf.scm.admin.domain.remote.allocationservice.dto.SalesPlanPermissionsDTO;
import com.rome.arch.core.clientobject.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 销售计划权限
 *
 * @author Martin
 * @date 2020-11-01 19:31
 */
@FeignClient(name = "scm-plan-service")
public interface SalesPlanPermissionsRemote {

    @GetMapping("/permissions/_userid/{userId}")
    Response<List<SalesPlanPermissionsDTO>> listByUserId(@PathVariable("userId") Long userId);
}
